RAIS  3.2
C:/Projekte/RAIS/ApplicationLogiLayer/SpecificReportManagement.cs
Go to the documentation of this file.
00001 
00028 using System;
00029 using System.Collections.Generic;
00030 using System.Linq;
00031 using System.Text;
00032 using System.Data;
00033 
00034 namespace RAIS.ApplicationLogicLayer
00035 {
00036     public class SpecificReportManagement
00037     {
00038         public static Dictionary<string, string> GetSubcategories(string category)
00039         {
00040             return DataAccessLayer.SpecificReportManagement.GetSubcategories(category);
00041         }
00042 
00043         public static bool AddSpecificReport(string specificReportName, string fileName, string reportDefinition, ref int reportID)
00044         {
00045             return DataAccessLayer.SpecificReportManagement.AddSpecificReport(specificReportName, fileName, reportDefinition, ref reportID);
00046         }
00047 
00048         public static Dictionary<string, string> GetReports()
00049         {
00050             return DataAccessLayer.SpecificReportManagement.GetReports();
00051         }
00052 
00053         public static DataTable GetReportByID(int id)
00054         {
00055             return DataAccessLayer.SpecificReportManagement.GetReportByID(id);
00056         }
00057 
00058         public static bool UpdateSpecificReport(int specificReportID, int maskID, int dynamicMaskID, int subcategoryID, string specificReportName, string fileName, string reportDefinition)
00059         {
00060             return DataAccessLayer.SpecificReportManagement.UpdateSpecificReport(specificReportID, maskID, dynamicMaskID, subcategoryID, specificReportName, fileName, reportDefinition);
00061         }
00062 
00063         public static int GetSubcategoryIDByReportID(int id)
00064         {
00065             return DataAccessLayer.SpecificReportManagement.GetSubcategoryIDByReportID(id);
00066         }
00067 
00068         public static string GetSubcategoryNameByReportID(int id)
00069         {
00070             return DataAccessLayer.SpecificReportManagement.GetSubcategoryNameByReportID(id);
00071         }
00072 
00073         public static bool RemoveSpecificReport(int id, ref string returnMessage)
00074         {
00075             return DataAccessLayer.SpecificReportManagement.RemoveSpecificReport(id, ref returnMessage);
00076         }
00077 
00078         public static byte[] GetSpecificReportFile(int id)
00079         {
00080             return DataAccessLayer.SpecificReportManagement.GetSpecificReportFile(id);
00081         }
00082 
00083         public static string GetSpecificReportDefinition(int reportID)
00084         {
00085             return DataAccessLayer.SpecificReportManagement.GetSpecificReportDefinition(reportID);
00086         }
00087 
00088         public static List<string> GetQueryFieldsByID(int reportID)
00089         {
00090             return DataAccessLayer.SpecificReportManagement.GetQueryFieldsByID(reportID);
00091         }
00092 
00093         public static void SaveReportDefinition(int reportID, string reportDefinition)
00094         {
00095             DataAccessLayer.SpecificReportManagement.SaveReportDefinition(reportID, reportDefinition);
00096         }
00097 
00098         public static bool IsSpecificReport(int dynamicMaskID)
00099         {
00100             return DataAccessLayer.SpecificReportManagement.IsSpecificReport(dynamicMaskID);
00101         }
00102 
00103         public static int GetSpecificReportID(int dynamicMaskID)
00104         {
00105             return DataAccessLayer.SpecificReportManagement.GetSpecificReportID(dynamicMaskID);
00106         }
00107 
00108         public static DataTable GetQueryResult(string queryName, string parameter, string grouping, RAIS.Common.UserManagement.UserData currentUser, int dynamicMaskID)
00109         {
00110             return DataAccessLayer.SpecificReportManagement.GetQueryResult(queryName, parameter, grouping, currentUser, dynamicMaskID);
00111         }
00112 
00113         public static DataTable GetDataTableFromQuery(string query)
00114         {
00115             return DataAccessLayer.SpecificReportManagement.GetDataTableFromQuery(query);
00116         }
00117 
00118         public static List<string> GetSubreports(int reportID)
00119         {
00120             return DataAccessLayer.SpecificReportManagement.GetSubreports(reportID);
00121         }
00122 
00123         public static int GetMaskIdByReportName(string reportName)
00124         {
00125             return DataAccessLayer.SpecificReportManagement.GetMaskIdByReportName(reportName);
00126         }
00127 
00128         public static int GetSpecificReportIdByName(string reportName)
00129         {
00130             return DataAccessLayer.SpecificReportManagement.GetSpecificReportIdByName(reportName);
00131         }
00132 
00133         public static string GetSpecificReportNameById(int specificReportID)
00134         {
00135             return DataAccessLayer.SpecificReportManagement.GetSpecificReportNameById(specificReportID);
00136         }
00137 
00138         public static RAIS.Common.UserManagement.Mask GetMaskByReportName(string specificReportName)
00139         {
00140             return DataAccessLayer.SpecificReportManagement.GetMaskByReportName(specificReportName);
00141         }
00142 
00143         public static bool IsSubreport(string specificReportName)
00144         {
00145             return DataAccessLayer.SpecificReportManagement.IsSubreport(specificReportName);
00146         }
00147 
00148         public static void GenerateMenuItem(int specificReportID, bool generateMenuItem)
00149         {
00150             DataAccessLayer.SpecificReportManagement.GenerateMenuItem(specificReportID, generateMenuItem);
00151         }
00152 
00153         public static bool IsMenuItemGenerated(int specificReportID)
00154         {
00155             return DataAccessLayer.SpecificReportManagement.IsMenuItemGenerated(specificReportID);
00156         }
00157 
00158         public static void SetQuery(int dynamicMaskID, string queryName)
00159         {
00160             DataAccessLayer.SpecificReportManagement.SetQuery(dynamicMaskID, queryName);
00161         }
00162     }
00163 }